<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<br>
<img src="/images/trash.png">
<h1><fmt:message key="distinctiveList.heading" /> </h1>
<table class="table">
<thead>
    <tr>
        <th class="hidden" />
        <th><fmt:message key="distinctive.name"/></th>
        <th><fmt:message key="distinctive.value"/></th>
        <th><fmt:message key="button.delete" /></th>
    </tr>
</thead>
<tbody>
    <s:if test="distinctiveList.size > 0">
        <s:iterator value="distinctiveList">
            <tr class="odd" style="cursor: pointer;">
                <td class="hidden"><s:property value="id" /></td>
                <td><s:property value="name" /></td>
                <td><s:property value="value" /></td>
                <td>
                    <s:url id="delete" action="deleteAjaxDistinctive" includeParams="true" >
                        <s:param name="decorate" value="false"/>
                        <s:param name="idDistinctive" value="id" />
                    </s:url>
                    <s:a href="%{delete}" theme="ajax" targets="distinctives" >
                        <img src="<c:url value="/images/trash.png" />" alt="Delete" />
                    </s:a>
                </td>
            </tr>
        </s:iterator>
    </s:if>
    <s:else>
        <tr class="empty"><td colspan="4"><fmt:message key="empty" /></td></tr>
    </s:else>
</tbody>
</table>


